<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateBillOfMaterialEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_oats}" for="oats" />
                    <h:inputText id="oats" value="#{billOfMaterialEntityController.selected.oats}" title="#{bundle.CreateBillOfMaterialEntityTitle_oats}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_wheatGerm}" for="wheatGerm" />
                    <h:inputText id="wheatGerm" value="#{billOfMaterialEntityController.selected.wheatGerm}" title="#{bundle.CreateBillOfMaterialEntityTitle_wheatGerm}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_cinnamon}" for="cinnamon" />
                    <h:inputText id="cinnamon" value="#{billOfMaterialEntityController.selected.cinnamon}" title="#{bundle.CreateBillOfMaterialEntityTitle_cinnamon}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_nutmeg}" for="nutmeg" />
                    <h:inputText id="nutmeg" value="#{billOfMaterialEntityController.selected.nutmeg}" title="#{bundle.CreateBillOfMaterialEntityTitle_nutmeg}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_cloves}" for="cloves" />
                    <h:inputText id="cloves" value="#{billOfMaterialEntityController.selected.cloves}" title="#{bundle.CreateBillOfMaterialEntityTitle_cloves}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_honey}" for="honey" />
                    <h:inputText id="honey" value="#{billOfMaterialEntityController.selected.honey}" title="#{bundle.CreateBillOfMaterialEntityTitle_honey}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_canolaOil}" for="canolaOil" />
                    <h:inputText id="canolaOil" value="#{billOfMaterialEntityController.selected.canolaOil}" title="#{bundle.CreateBillOfMaterialEntityTitle_canolaOil}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_vitMineralPowder}" for="vitMineralPowder" />
                    <h:inputText id="vitMineralPowder" value="#{billOfMaterialEntityController.selected.vitMineralPowder}" title="#{bundle.CreateBillOfMaterialEntityTitle_vitMineralPowder}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_carobChips}" for="carobChips" />
                    <h:inputText id="carobChips" value="#{billOfMaterialEntityController.selected.carobChips}" title="#{bundle.CreateBillOfMaterialEntityTitle_carobChips}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_proteinPowder}" for="proteinPowder" />
                    <h:inputText id="proteinPowder" value="#{billOfMaterialEntityController.selected.proteinPowder}" title="#{bundle.CreateBillOfMaterialEntityTitle_proteinPowder}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_cocoaPowder}" for="cocoaPowder" />
                    <h:inputText id="cocoaPowder" value="#{billOfMaterialEntityController.selected.cocoaPowder}" title="#{bundle.CreateBillOfMaterialEntityTitle_cocoaPowder}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_hazenuts}" for="hazenuts" />
                    <h:inputText id="hazenuts" value="#{billOfMaterialEntityController.selected.hazenuts}" title="#{bundle.CreateBillOfMaterialEntityTitle_hazenuts}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_cashewnuts}" for="cashewnuts" />
                    <h:inputText id="cashewnuts" value="#{billOfMaterialEntityController.selected.cashewnuts}" title="#{bundle.CreateBillOfMaterialEntityTitle_cashewnuts}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_walnuts}" for="walnuts" />
                    <h:inputText id="walnuts" value="#{billOfMaterialEntityController.selected.walnuts}" title="#{bundle.CreateBillOfMaterialEntityTitle_walnuts}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_almonds}" for="almonds" />
                    <h:inputText id="almonds" value="#{billOfMaterialEntityController.selected.almonds}" title="#{bundle.CreateBillOfMaterialEntityTitle_almonds}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_macadamias}" for="macadamias" />
                    <h:inputText id="macadamias" value="#{billOfMaterialEntityController.selected.macadamias}" title="#{bundle.CreateBillOfMaterialEntityTitle_macadamias}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_redcurrants}" for="redcurrants" />
                    <h:inputText id="redcurrants" value="#{billOfMaterialEntityController.selected.redcurrants}" title="#{bundle.CreateBillOfMaterialEntityTitle_redcurrants}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_raisins}" for="raisins" />
                    <h:inputText id="raisins" value="#{billOfMaterialEntityController.selected.raisins}" title="#{bundle.CreateBillOfMaterialEntityTitle_raisins}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_dates}" for="dates" />
                    <h:inputText id="dates" value="#{billOfMaterialEntityController.selected.dates}" title="#{bundle.CreateBillOfMaterialEntityTitle_dates}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_apricots}" for="apricots" />
                    <h:inputText id="apricots" value="#{billOfMaterialEntityController.selected.apricots}" title="#{bundle.CreateBillOfMaterialEntityTitle_apricots}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_kiwis}" for="kiwis" />
                    <h:inputText id="kiwis" value="#{billOfMaterialEntityController.selected.kiwis}" title="#{bundle.CreateBillOfMaterialEntityTitle_kiwis}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_apples}" for="apples" />
                    <h:inputText id="apples" value="#{billOfMaterialEntityController.selected.apples}" title="#{bundle.CreateBillOfMaterialEntityTitle_apples}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_peaches}" for="peaches" />
                    <h:inputText id="peaches" value="#{billOfMaterialEntityController.selected.peaches}" title="#{bundle.CreateBillOfMaterialEntityTitle_peaches}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_product}" for="product" />
                    <h:selectOneMenu id="product" value="#{billOfMaterialEntityController.selected.product}" title="#{bundle.CreateBillOfMaterialEntityTitle_product}" >
                        <f:selectItems value="#{productEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{billOfMaterialEntityController.selected.id}" title="#{bundle.CreateBillOfMaterialEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{billOfMaterialEntityController.selected.createdAt}" title="#{bundle.CreateBillOfMaterialEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{billOfMaterialEntityController.selected.createdBy}" title="#{bundle.CreateBillOfMaterialEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{billOfMaterialEntityController.selected.lastModifiedAt}" title="#{bundle.CreateBillOfMaterialEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateBillOfMaterialEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{billOfMaterialEntityController.selected.lastModifiedBy}" title="#{bundle.CreateBillOfMaterialEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{billOfMaterialEntityController.create}" value="#{bundle.CreateBillOfMaterialEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{billOfMaterialEntityController.prepareList}" value="#{bundle.CreateBillOfMaterialEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateBillOfMaterialEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
